Skip to content

Conversation

@maciejbaczmanski
Copy link
Contributor

@maciejbaczmanski maciejbaczmanski commented Jan 30, 2025

Pull commits from upstream:

  • openthread: fix logging configuration
  • net: openthread: fix otPlatBleEnable

Currently, `CONFIG_OPENTHREAD_LOG_LEVEL` is used to set log level
in OT and register log modules in Zephyr. OpenThread allows 5
levels, causing issues when `OPENTHREAD_LOG_LEVEL_DEBG` is
selected ad we are trying to register modules with unknown lvl.

This commit adds `CONFIG_OPENTHREAD_MODULE_LOG_LEVEL` which is
aligned for Zephyr's log levels.

Signed-off-by: Maciej Baczmanski <[email protected]>
(cherry picked from commit 3413595)
If BLE has already been enabled, `bt_enable` returns immediately
and does not call passed callback function.
In this case, call `bt_conn_cb_register` to ensure that callbacks
are registered correctly.

Signed-off-by: Maciej Baczmanski <[email protected]>
(cherry picked from commit 1bd8e44)
@rlubos rlubos merged commit a2eaddb into nrfconnect:main Jan 31, 2025
19 of 20 checks passed
@maciejbaczmanski maciejbaczmanski deleted the ot_ble_and_logs branch January 31, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants